﻿namespace Ficharts.Net
{
    using System;

    public class AnimationPropertySet : PropertySetBase
    {
        public AnimationPropertySet()
        {
            animation = null;
        }

        [GraphElement]
        private bool? animation;

        public bool Animation
        {
            get
            {
                if (animation == null)
                {
                    throw new NullReferenceException("animacion can't be null");
                }
                return Convert.ToBoolean(animation);
            }
            set
            {
                animation = value;
            }
        }
    }
}
